Correct reference type
Convert to refman encoding (maybe it always uses Win-default)