Fix: correct multibyte strings truncate (multiple bugs fixed)

Hello!

This patch fixes multiple issues:

* #767 
* #1096
* #1275

P.S. Thanks for help http://devtiplog.com/posts/error-json_encode-in-jetpack-for-wordpress/