[[ feature-sanitiseenv ]] Add MCVariable::isenv() accessor.
[[ feature-sanitiseenv ]] Use MCVariable::isenv() instead of test for "$".
[[ feature-sanitiseenv ]] OS X: Use UTF-8 encoding for env variables.
[[ feature-sanitiseenv ]] Remove MCValueRef type check.

Rely on the assertion when we try to format the variable.