Unable to commit code segment

New user, just updated to CE 8.3.2.

I have a number of scripts with the below code segment:

if ! grep -q jenkins /etc/passwd

When trying to upload a script containing the above as a new file, I receive the below error:

Error uploading file: "Server responded with 0 code."

When I create the file manually, I can copy/paste all of the script except for the above line. When I put the above into it in the editor and commit, my browser gives me a No Data Received error and the commit isn’t there.

Any advice?