[fix] mongo: Use byte_length to serialize string length