[commit: base] encoding: Implement surrogate-byte error handling mode for TextEncoding (e60a79b)