Implement escaping of inputs