Added Basic exceptions.

Added Basic byte check for invalid UTF-8 bytes ( valid UTF-8 chars are not checked by now )