Fix mixed value encodings write stream