allow for escaping ~ and ^