convert bytes for file transfer message, general fixes