Sockets (encoding)

Is there any way that I can write just a string of bytes to the socket? I was using writeUTFBytes, but UTF-8 doesn’t support all the characters that I want to send, so I’m kind of lost on what to do…