recorderendpoint: Avoid memory copy for static strings

Change-Id: Ic4a9d962ec4d7b434a147c7619db91bfdc601bec