Electrons in a curvilinear quantum wire