Fixed offset issue in string decoding.