Fix EZP-23086: Image thumbnail not shown on backend if alias contains quotes

Additional fix to also handle the case where the URL contains several simple
quotes.
Merge pull request #1038 from ezsystems/ezp-23096_thumbnail_double_simple_quote

Fix EZP-23086: Image thumbnail not shown on backend if alias contains quotes