This fails for files that don't have a file extension and produces paths outside of the Android sandbox. https://github.com/zetbaitsu/Compressor/blob/70c7eac678ee3d4cb61b10cfa9782de4102def72/compressor/src/main/java/id/zelory/compressor/Util.kt#L89 Kotlin has `nameWithoutExtension` which uses the file name instead of the whole path.