Refactored Encoding enum.