fixes image uploads

if images had special regex characters in them upload text was failing