make LP_charsetFromText work with defaultCharset
improve unicode to gname conversion LP_charsetFromText
cleanup imports LP_charsetFromText
fix merge