Index: coloredlogs/converter/__init__.py
--- coloredlogs/converter/__init__.py.orig
+++ coloredlogs/converter/__init__.py
@@ -9,7 +9,7 @@
 # Standard library modules.
 import codecs
 import os
-import pipes
+import shlex
 import re
 import subprocess
 import tempfile
@@ -75,7 +75,7 @@ def capture(command, encoding='UTF-8'):
         #
         # [1] http://man7.org/linux/man-pages/man1/script.1.html
         # [2] https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man1/script.1.html
-        command_line = ['script', '-qc', ' '.join(map(pipes.quote, command)), '/dev/null']
+        command_line = ['script', '-qc', ' '.join(map(shlex.quote, command)), '/dev/null']
         script = subprocess.Popen(command_line, stdout=subprocess.PIPE, stderr=dev_null)
         stdout, stderr = script.communicate()
         if script.returncode == 0:
