Filesystem: Renamed decode_path() to encode_path(). Get rid of the misleading name as it is the opposite of what it does. Preparation for fixing [bug 7659 (#7659)].