Fixes #86 - broken charset replacing when preceeded by text content.