modify for multi-byte and fix empty text
Merge branch 'master' of github.com:puritys/nodejs-phplike