Fix decode for case when stdin is not present for example when running under jenkins
Merge pull request #278 from vladistan/master

Fix decode for case when stdin is not present.

Thanks @vladistan.