Added possibility to set non-latin1 prettyName.