Simply decode blueprint strings to JSON and encode (modified) JSON back to factorio blueprint strings.