SessionConfig.user_agent can be unicode
Fix wrong use of sp_link_as_track_and_offset()