handle utf-8 in tr() automatically