2.6.11 (2023-05-09) Reverts Revert "fix: handle bom in text and json (#1739)" (#1741) (afb36f6), closes #1739 #1741