Core: Use the correct function to convert strings to unsigned longs and unsigned long longs