Resolve issue where "startkey" and "endkey" were not escaped when using views.