Clean the util.sh by removing the encode functions and fix ranger-cd