Fixed AJAX authentication handling and Voyager authentication using non-...

...latin characters in password.