support setting integer global_encoding values for #218