Removes used classes, fixes UTF-8 issues