Fix icon decoding error.

Fixes #590. Tested in Ubuntu 13.10 x64 on ST3 build 3047.