Refactor the unescape (gsub with replacement hash)