Added ENCODING constant.
Added data module and tests.