Encode paths before use them.
Handle encoding problems in the vpn connection.
Update docstrings to unicode types.