Properly escaping the reserved characters