Changed encoding for signatures to prevent logout.