If you are using a ZSH shell like oh-my-zsh and you try to tab completing a word and you get some annoying remanent characters like
$ cd $ cdcd
And you cannot remove some of them is because you have some issues with UTF8 configuration.
You could try if this solution works
If it does, make it permanent
echo "export LC_ALL=en_US.UTF-8" >> .zshrc