Fix syntax errors in to_bytes.rb