added configurable encoding
added configurable encoding