What is the purpose of this, seems it will strip % from directory names too?