Adapting Whisper for Code-Switching through Encoding Refining and Language-Aware Decoding