switching templating from ByteString to Text to avoid problems with non-ascii characters