Add String.valid_codepoint?/1 function.

First step towards #711.