Encode or decode multiline scripts with explicit text encoding and BOM control.
UTF-16LE without BOM matches common PowerShell EncodedCommand usage.
Whitespace is ignored when decoding Base64 input.