APY-34 : Refactor encoder

Added path encoder.