models: fix unicode behaviour