auto detect character encoding when shared file is text.
add simple footer