自己解決
"hogehoge" + Pattern.quote(File.separator) + "piyopiyo"

エスケープする必要があるかどうか調べて分岐するような
お馬鹿なコードは書かずにすんだ