Fix bug that allows invalid UTF-8 after valid escapes.

Merges r991073 from trunk to branches/1.0.x
Fixes COUCHDB-875



git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@1061088 13f79535-47bb-0310-9956-ffa450edef68
1 file changed