Changing the API of the network package to use ByteStrings instead of Strings