Call unicode() instead of str() for textbook IDs

STUD-1327

@adampalay, does this fix the problem?