Fix encode for title and testId