Fixed content length calculating method to include utf-8 characters byte length.