name of uploaded file is now utf-8 encoded before json_encode is called
writing returned file name of uploaded file to console.log