Add command line options for specifying hostname and port of the Gerrit instance

Just the minimal change required to allow use of the script with another gerrit instance. The script if used as today should not change its behavior and default to the original OpenStack hostname and port.

Also fix work with Unicode non-ASCII values.

Signed-off-by: Matěj Cepl <mcepl@redhat.com>