valueOf

Utility function to get Encoding instance from given value.