[DD-734] re-factored GDMEncoder