Added postprocessing script and fixed encoding problem