dao factory working with the right character encoding