Remove unneeded escaping of ~ characters