replace_ENCODE added

added replace_ENCODE function for put operations