cleanup of marker encoding.