fixed string decode bug