MDL-29749 core: Improved file name clean up
MDL-29749 phpunit: More test cases for PARAM_FILE