Merge pull request #1 from edmodo/master

Add support for encoding null values
properly decode arrays ending with a value separator