Fixed case when password starts with '%'.

References #24.