convert string to ByteArray before sending data to server