Cerales/ShyCouch — Issue #16: Querying by key sometimes returns 400 error
Author: Cerales
Created: 2011-10-15 02:41:32+00:00
State: open

````ruby
title = "i_want_posts_to_work!"
@blog_post = design(:CouchBlog).query_view(:posts_by_title, :include_docs => true, :key => title)

>> RestClient::BadRequest: 400 Bad Request
````
Couch has this output:

````
{"error":"bad_request","reason":"invalid UTF-8 JSON"}
`````

Could be that I'm not escaping the title properly when there's spaces and stuff.