Avoid converting bytestrings to strings for performance.