Properly escaped curl requests. Closes #487.