Fixed platform-dependent data output (http://stackoverflow.com/questions/22219723/platform-dependent-data-output).