Merge pull request #184 from apache/XALANJ-2725

XALANJ-2725: Fix for when UTF16 surrogate pair crosses buffer boundaries