encode pw utf-8