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