You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: afm.rb
    path of file: ./repos/asciidoctor-pdf/lib/asciidoctor/pdf/ext/prawn/font
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

    
  def normalize_encoding text
    text.encode 'windows-1252', fallback: FALLBACK_CHARS
  rescue ::Encoding::UndefinedConversionError
    logger.warn %(The following text could not be fully converted to the Windows-1252 character set:
#{text.gsub(/^/, '| ').rstrip}) if logger.info? && !@document.scratch?
    text.encode 'windows-1252', undef: :replace, replace: ?\u00ac
  end