Fixed binary string length issue by specifying Charset