Prevent single quotes from breaking owner select and sanitize double quo...

...tes

#1127