function jsonPointerDecodeAndReplace(filePathName) {
  return decodeURIComponent(filePathName.replace(escapedSlash, jsonPointerLevelSeparator).replace(escapedTilde, '~'));
}
Decodes a json pointer
replaces ~0 and ~1 for tildes and slashes
@param {string} filePathName the filePathName of the file
@returns {string} - the encoded filepath