Fixed an encoding bug with exporting submissions that have single quotes. Fixes #289.