encode db path (win)