Cast to unsigned char. There were problems with some latin2 chars.