like /usr/local?
/usr/local
I tried file:///usr/local but failed
file:///usr/local
[root@www2 robot]# cd file:///usr/local -bash: cd: file:///usr/local: No
If you have to deal with file:///usr/local on the command line, you could just remove the "file://" part. And do then a normal your command, e.g.:
echo "file:///usr/local/" | sed 's/file:\/\///' | cd