Fix bytes from compat to handle iterables properly