working socket
FileReader is not safari-compatible
arrayBuffer and String conversions