Rename functions to avoid name shadowing
Use ByteStrings instead of Text

We are limited to ASCII anyway.
Use bytestring builders