adds URI escape so that image urls are correct