fix unicode does not have the buffer interface.