Fixed case when password starts with '%'.

References #24.
Merge pull request #63 from claudius108/master

Fixed case when password starts with '%'.