Added platform encoding to get rid of irritating warning.
Option interpreter now recognizes -json argument (but does nothing with it yet).