lib: Use wrapper for string to integer conversion