Bugfix: password like test%123 doesn't work

We used an older version of JHipster, but it seems the bug is also in the code here.

The password is not escaped properly. Using for example 'test%123' resolves to 'test3' which of course doesn't work.