Better cross-browser testing, fixes for binary I/O on Safari.