Fixed an encoding error which caused the script to crash when it mets umlauts.