Fix to file.append

Fixing a reported issue when using file.append to append strings to a file when the string contains an equal sign.  Also added the fix to file.prepend and file.write.  Per #14626