fixed another nasty encoding bug in our ls-handler