Fixed UTF-8 payload length

As per Issue #4, here is the fix I am proposing.