perl-module: Use new var_get_encoding() function.