Escape single quote characters in passwords

This is due to Bash's strong quoting when using single quotes. We need
for --display to show the proper escape sequence to recreate a password
that contains single quotes within it.