Remove .encode(utf-8) from tempurl