Use more bitwise operators in utf-8 and utf-16 algorithms. https://www.w3.org/Bugs/Public/show_bug.cgi?id=24198