Added single quotes around filename parameter in system call to openssl for base64 encoding.