ByteString enhancements, based on HttpString work from Undertow