compatible to logback 1.1.2

This change will enable the encoder for logback 1.1.2. 
Not compatible with lower logback versions.