Hash functions expect utf8 so encode raw strings as utf8 in PSS