freebsd/getpatch: use literal instead of constructor, it avoid
CALL_FUNCTION bytecode instruction and add function add_patch
freebsd/getpatch: use sys.getdefaultencoding() to retrieve system
encoding and remove non need import locale