Fixed missing new on Error Constructors
Added basic.encoding + Unit Test