File association: Socket encoding fix