fix test build with safe-string