Null-terminate string

In theory it shouldn't be necessary since the length is specified but there are parts like https://github.com/assimp/assimp/blob/master/code/MaterialSystem.cpp#L74 that depend on it.
Merge pull request #395 from Gargaj/patch-1

Null-terminate string