scalpel class: do additional file path validation before crossing jni boundary