CB-6478: Fix exception when try to record audio file on windows 8