fix for URLs with query and fragment break resource path https://github.com/readium/readium-sdk/issues/143