Fix AtomStream to_bytes()