Added To/FromJSON instance for Encoded bytestrings