Minor cosmetics changes.
Handle properly binary nodes, and support text files submitted as binary (makes the assumption it is always UTF-8 though).