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

STUD-1327
Merge pull request #2662 from edx/db/textbook-id-unicode

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