Support arbitrary lengths when decoding.