Gamma-Limit of the Onsager-Machlup Functional on the Space of Curves