updated upload script, fixes bad character error message