Properly escape minus signs so that they don't become hyphens