Password should be encoded as 'utf-8' before creating hmac to support passwords with non-latin symbols

I received UnicodeEncodeError: 'ascii' codec can't encode character u'\u0439' in position 0: ordinal not in range(128) when I tried to use password with non-latin (russian) symbols.