Split uncommon case from unicode/bytes.endswith() implementation to suggest inlining the normal case.