It was one of the things I worried about too, but the quality is actually very good (so MUCH better than Nexus4, also coming from iPhone5), tested with Beyerdynamics DT770,
just make sure you turn off Surround and make EQ flat (Off) in Sound > Audio Effects, or even turn off the whole audio...