added str_replace for list names with spaces

list name is provided as 'List%20Name' but then converted to 'List_x0020_Name' for getListItemEntityType. Otherwise, SPO throws errors.