Handle PKCS12 unicode passwords

The load_pkcs12 can't handle passing unicode objects. Instead, encode the given 
string as bytes before passing to the function.