Added dump_bytes helper method.