packaging: setup: handle special characters in password

escape chars based on usage, reuse escape.

Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=811234
Change-Id: Ide021a99d30b616e6396a7412ec17cf3a3e0ed02
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>