Move convert2unicode to utils to avoid circular dependency