Fixed compiler errors, got utf8-decoding working again with new types.