A worker who was sacked after calling a customer a "twat" in an email mix-up has won more than £5,000 in an unfair dismissal claim.