The documentation for 'login' isn't very clear on the format for the hpassword entry. I've just verified independently that you can pass the MD5 hash as a string of hexadecimal digits, rather than %xx encoded character-bytes. Hence:
Just thought that might help someone someday. I had to use trial and error to figure it out.