Fix get_decode_len ignored strlen return value