if payload contains wrong utf-8, fallback to latin-1 encoding