Implement tilde expansion with escapes