roidrage/s3itch — pull request #9 by k33l0r (2012-09-30 09:40:19+00:00)
Title: Fixes the question mark bug

**Reopens issue #7 with cleaner commits.**

For example, when I tried to upload a screenshot titled `foo?bar`:

![Webpost error](http://shots.matiaskorhonen.fi/Webpost_error-20120929-180617.png)

And the logs (private information removed/scrambled):

* Connected to mys3itch.herokuapp.com (50.19.85.62) port 80 (#0)
* Server auth using Basic with user 's3itch'
> PUT /foo?bar-20120929-180436.png HTTP/1.1
Authorization: Basic 9ce6d4060c8791a9cf2f17596f31aa2782f8faea74ff1dfdb76cae4938==
Host: mys3itch.herokuapp.com
Accept: */*
Content-Length: 7488
Expect: 100-continue

< HTTP/1.1 100 Continue
< HTTP/1.1 500 Internal Server Error
< Content-Type: text/html;charset=utf-8
< Server: thin 1.3.1 codename Triple Espresso
< X-Frame-Options: sameorigin
< X-Xss-Protection: 1; mode=block
< Content-Length: 0
< Connection: keep-alive
<
* Connection #0 to host mys3itch.herokuapp.com left intact
* Closing connection #0