Cosmetic cleanup.
Moved workaround def from test.hpp to utfx.hpp.
Fixed typo (uint should be unit).
Added dynamic encoding and unit tests pass.