Also, there might not be an extension. Make sure you parse correctly in that case.