Fix #4 (ability to use the script on a server without a real display)
Remove unneeded string decode
Merge remote-tracking branch 'upstream/master' for issue #4