fix up strtoul_ui error handling