Changed to writeUTF and readUTF rather than write and readFully