Fixed re-encoding of characters when license is in txt format. Fixes #184