Implement gsub fix for single-quotes, double-quotes and ampersands