remove unnecessary encoding