implement some escaping methods to prevent possible issues