Converts buffer to UTF‑8 string using detected encoding. Strips BOM if present.
Input buffer
Source encoding ('utf8', 'utf16le', 'utf16be')
UTF‑8 string without BOM
Converts buffer to UTF‑8 string using detected encoding. Strips BOM if present.