Fix illegal byte sequence when reverse searching in zsh