Add String.is_valid_codepoint/1 function.

As the comment states, this isn't the prettiest of solutions. However, being short on time (and laptop battery) this is the best I could come up with. I'll have to look into the Unicode specs at some point when I get some spare time and figure out a better way to do this (without relying on exception handling).