fix issue 268

Fixed the problem and created a test to validate it.

https://code.google.com/p/owasp-esapi-java/issues/detail?id=268