detect encoding and convert etc...