remove null characters in decode