Make SQL happy with apostrophes