The returned string was one byte too large, because it contained the null terminator for string `IDProperty`. Noticed this when retrieving strings parameters in an operator which are stored as id properties. Pull Request: https://projects.blender.org/blender/blender/pulls/141321