unicode fix for https://github.com/np1/pms/issues/6