change ::ByteString to ::String in a few places now that bytestring is called automatically (#5677)