Optimize +[stringWithPath:].