Escape special characters when uploading images #wip h/t @gunjankarun