Fixed bug with multibyte strings failing the first condition

I found a bug where large multibyte strings would pass the first size check. This patch fixes that and also attempts to support breaking on word boundaries. Added a new test case as well.