added support for ESwitch encoding (close #16)