encoding support added