Term: diamond in the rough
Example: she thought he looked like a geek at first but he turned out to be a diamond in the rough
Definition: a person who appears dubious at first but turns out to be exceptional