Bugfix - non-ascii chars made the script crash