Decode and encode bytes from STDIN to STDOUT