Fixes a crash of casting bytes to Python string

The crash happened when cuDNN isn't used and the error message was raised. However, the message was a 'bytes' object, not a string. Casting the bytes to string solves the issue.
Merge pull request #2269 from ASalvail/master

Fixes a crash of casting bytes to Python string