Decode and encode HTML character entities