elixir-lang/elixir — pull request #746 by alexrp (2013-01-04 18:29:16+00:00)
Title: 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).