fixed checksum calculation
added ISO charsets