string decoder fix. decoder.end() does not exist in 0.8
3.1.2