Fulham have agreed a deal worth up to £30m to sign Southampton midfielder Shea Charles, who will become the most expensive Northern Irish footballer of all time on a five-year contract.