This CGI spec was actually failing after applying the patch due to the japanese input string getting encoded as ASCII-8BIT. The CGI implementation would eventually calling `gsub` on the source string, but the source's `valid_encoding?` is false.