Make String.valid_codepoint?/1 work on integer code points.

An integer code point is the sort of thing you get from `<<cp :: utf8>> = str_cp`.