Simplified escape() functions for SQL generation. For #37