remove extension from object keys for files