HTML character codes were coming out as the code itself