in reply to Re: Escaping single quote in $string
in thread Escaping single quote in $string

I take it you're using the system($string) syntax (or similar) for calling out to handbrake? Have you tried the system(@list) syntax? It doesn't involve the shell, so you don't need to escape the file names.