A man fined for burning a Koran outside the Turkish consulate in London has won an appeal against his conviction.