Fix tilde escaping