fixes #200
handles empty strings in active.php json
Not sure of actual cause.
fixes #201
extraneous slash break windows renaming.
Merge pull request #202 from tablatronix/master

some json php error handling