Replace single qoutes and escape them when copying curl

closes #24