Fixes "TypeError: tostring() got an unexpected keyword argument 'method'"

Should fix the 500 error thrown when setting a VNC password.