Fixed UTF-8 payload length

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