Tweaked to_bytes joining