Add test for size of leftover buffer and increase buffer size to support more character sets

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1451408 13f79535-47bb-0310-9956-ffa450edef68