Lukasz Piszczek's brilliant strike proved the difference in an exciting second half as Borussia Dortmund beat Mainz 2-1.