I just wanted to mention that I recently used some 90 degree 2mm headers with the magnetic encoders (https://www.pololu.com/product/2598), and I think they worked out pretty well. The angle of the headers is different than using the straight headers, but that works out ok in my design. Images attached.
-Mark