Safely escape title attributes