52525rr for a majority of the conversion code
Microsoft for the font
Sheeptester for some inspiration