Encoding issue on a password protected shared document. fixes #170