Fixed invalid character set problem with scandinavian letters.