This is because everything is bytes. Even strings. The difference is that the sequence of bytes used to represent a string differ according to the encoding you chose.
Which is why it is important, when you read or write text, to specify which encoding you want to use.
Note that in your case you don't select an encoding at all, which means the JVM default is used. And this is not portable since different JVMs use different encodings.