Binary data: store and read content as byte[] instead of string

Found this issue when i tried to cache png images. Got corrupted data.
I see no reason to make assumtions about the content. byte[] works for
strings aswell.