Fixed string decode performance issue