Fix a bug preventing percent characters from being used in passwords