Rank 3 permuation characters and maximal subgroups