Wojciech Szczesny was in fine form for Poland as they recorded their first-ever victory over Germany, putting them top of Group D.