renamed/refactored some encoding conversion functions. added stix_errnumtoerrstr(). added generr.st to generate error string code