flatten options hash into normal request parameters for API submits
Don't filter out newlines from query strings

Doing so causes issues with queries that include '--' comments