Bug report after discussion here http://www.mediawiki.org/wiki/Help_talk:Extension:ParserFunctions#titleparts_misinterprets_underscores
My guess is this is intended behaviour, but it's critial when handling URLs (which seems to be the main purpose of #titleparts).
Fixing this behaviour results in dirty back and forth replacements:
Version: unspecified
Severity: enhancement