replace: use a wrapper around strtoll if it didn't behave as expected