Escape all passwords for CGI

if we use password generator, we may get symbols that
ruby doesnt like. This fixes it.