Add encoding detection
Add initial unit/integration tests for Common.Data