Convert arbitrary unit strings into byte counts.