fix UnicodeEncodeError when using `alias()` with Unicode text
updates per @brutasse's comments
Merge pull request #480 from tsabirgaliev/master

fix UnicodeEncodeError when using `alias()` with Unicode text