Fix string length decoding.