improved error message for the function of_string

improved error message for the function of_string,
providing an Invalid_argument exception, with the module/function name and the message from the Scanf.Scan_failure exception which describes where the read error is.