variable: Introduce and use new function var_get_encoding().