Added options for offline rendering and encoding.

- Added an option "--offline" to access the offline Markdown render
  routine.
- Added an option "--encoding" to specify input file encoding (the
  Markdown package wants a unicode string). Default encoding is utf-8.