Canged from using bytearray to using bytes.
Besides working more cleaninly also fixes a bug if bencoded data
contains a byte string making decode(encode(decode(data))) produce
a result different from data.