cmCTestTestHandler: take reference to temporary string instead of doing a copy

This will increase the lifetime of the temporary until the end of the function.
Merge topic 'base64-constref' into next

82fbf490 cmCTestTestHandler: take reference to temporary string instead of doing a copy