More optimizations for UTF serializing / deserializing
Merge pull request #1462 from noctarius/utf-optimizations

More optimizations for UTF serializing / deserializing