added dpt2, dpt3, dpt4 encode methods #3