Encode HTML entities in title attributes