Fixed #1274: Weird (wrong) string code in papi.cpp