Functions to help with parsing RPC arguments