Encode urls for preview image srcs