Make use of writeUTF instead of writing strings as byte arrays